/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dao;

import com.breeze.entity.Tuser;
import java.util.List;

/**
 *
 * @author huateng
 */
public class UserDao extends BaseDao{
    
    private final String query_user="tuser.selectByPage";
    private final String update_user="tuser.updateRecords";
    private final String insert_user="tuser.insertObject";
    private final String delete_user="tuser.deleteByCondition";
    private final String query_count="tuser.queryCount";
    
    public int deleteuser(Tuser user){
        return delete(delete_user, user);
    }
    
    public Tuser queryForuser(Tuser user){
        return (Tuser)queryForObject(query_user, user);
    }
    
    public List queryForuserList(Tuser user){
        return queryForList(query_user, user);
    }
    
    public int updateuser(Tuser user){
        return update(update_user, user);
    }
    
    public Tuser inserTuser(Tuser user){
        return (Tuser)insert(insert_user, user);
    }
    
    public long queryCount(Tuser user){
        return (Long)queryForObject(query_count, user);
    }
}
